home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / EmacsManager.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-01  |  1.9 KB  |  72 lines

  1. /* Copyright (C) 1995 Amdahl Corporation.
  2.  
  3. This file is part of XEmacs.
  4.  
  5. XEmacs is free software; you can redistribute it and/or modify it
  6. under the terms of the GNU General Public License as published by the
  7. Free Software Foundation; either version 2, or (at your option) any
  8. later version.
  9.  
  10. XEmacs is distributed in the hope that it will be useful, but WITHOUT
  11. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13. for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with XEmacs; see the file COPYING.  If not, write to the Free
  17. Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. /* Synched up with: Not in FSF. */
  20.  
  21. /* Written by Ben Wing. */
  22.  
  23. #ifndef _EmacsManager_h
  24. #define _EmacsManager_h
  25.  
  26. #ifndef XtNresizeCallback
  27. #define XtNresizeCallback "resizeCallback"
  28. #endif
  29.  
  30. #ifndef XtNqueryGeometryCallback
  31. #define XtNqueryGeometryCallback "queryGeometryCallback"
  32. #endif
  33.  
  34. #ifndef XtNuserData
  35. #define XtNuserData "userData"
  36. #endif
  37. #ifndef XtCUserData
  38. #define XtCUserData "UserData"
  39. #endif
  40.  
  41. /* scrollbar placement types; like in ScrolledW.h */
  42.  
  43. #define EM_TOP          1
  44. #define EM_BOTTOM       0
  45. #define EM_LEFT         2
  46. #define EM_RIGHT        0
  47.  
  48. #define XtTOP_LEFT      (EM_TOP | EM_LEFT)
  49. #define XtBOTTOM_LEFT   (EM_BOTTOM  | EM_LEFT)
  50. #define XtTOP_RIGHT     (EM_TOP | EM_RIGHT)
  51. #define XtBOTTOM_RIGHT  (EM_BOTTOM  | EM_RIGHT)
  52.  
  53. typedef struct _EmacsManagerClassRec *EmacsManagerWidgetClass;
  54. typedef struct _EmacsManagerRec *EmacsManagerWidget;
  55. extern WidgetClass emacsManagerWidgetClass;
  56.  
  57. /* External entry points */
  58. typedef struct
  59. {
  60.   Dimension width, height;
  61. } EmacsManagerResizeStruct;
  62.  
  63. typedef struct
  64. {
  65.   Dimension proposed_width, proposed_height;
  66.   XtGeometryMask request_mode;
  67. } EmacsManagerQueryGeometryStruct;
  68.  
  69. void EmacsManagerChangeSize (Widget w, Dimension width, Dimension height);
  70.  
  71. #endif /* _EmacsManager_h */
  72.